#ifndef __VECTOR__
#define __VECTOR__

#define INT0_VECTOR      0  // 0x03 External Interrupt 0
#define TMR0_VECTOR      1  // 0x0B Timer 0 Overflow
#define INT1_VECTOR      2  // 0x13 External Interrupt 1
#define TMR1_VECTOR      3  // 0x1B Timer 1 Overflow
#define UART0_VECTOR     4  // 0x23 Serial Port 0
#define ADC_VECTOR       5  // 0x2B ADC Conversion Complete
#define LVD_VECTOR       6  // 0x33 Low Voltage Detect
#define PCA_VECTOR       7  // 0x3B PCA Overflow
#define UART2_VECTOR     8  // 0x43 Serial Port 2
#define SPI_VECTOR       9  // 0x4B SPI Serial Interface
#define INT2_VECTOR      10 // 0x53 External Interrupt 2
#define INT3_VECTOR      11 // 0x5B External Interrupt 3
#define TMR2_VECTOR      12 // 0x63 Timer 2 Overflow
#define INT4_VECTOR      16 // 0x83 External Interrupt 4
#define UART3_VECTOR     17 // 0x8B Serial Port 3
#define UART4_VECTOR     18 // 0x93 Serial Port 4
#define TMR3_VECTOR      19 // 0x9B Timer 3 Overflow
#define TMR4_VECTOR      20 // 0xA3 Timer 4 Overflow
#define CMP_VECTOR       21 // 0xAB Comparator
#define I2C_VECTOR       24 // 0xC3 I2C Serial Interface
#define USB_VECTOR       25 // 0xCB USB Interrupt
#define PWMA_VECTOR      26 // 0xD3 PWM A
#define PWMB_VECTOR      27 // 0xDB PWM B
#define RTC_VECTOR       36 // 0x123 Real Time Clock

#define P0INT_VECTOR     37 // 0x12B Port 0 External Interrupt
#define P1INT_VECTOR     38 // 0x133 Port 1 External Interrupt
#define P2INT_VECTOR     39 // 0x13B Port 2 External Interrupt
#define P3INT_VECTOR     40 // 0x143 Port 3 External Interrupt
#define P4INT_VECTOR     41 // 0x14B Port 4 External Interrupt
#define P5INT_VECTOR     42 // 0x153 Port 5 External Interrupt

#define DMA_M2M_VECTOR   47 // 0x178 DMA Memory to Memory Transfer
#define DMA_ADC_VECTOR   48 // 0x183 DMA ADC Transfer
#define DMA_SPI_VECTOR   49 // 0x18B DMA SPI Transfer
#define DMA_UR1T_VECTOR  50 // 0x193 DMA UART1 TX Transfer
#define DMA_UR1R_VECTOR  51 // 0x19B DMA UART1 RX Transfer
#define DMA_UR2T_VECTOR  52 // 0x1A3 DMA UART2 TX Transfer
#define DMA_UR2R_VECTOR  53 // 0x1AB DMA UART2 RX Transfer
#define DMA_UR3T_VECTOR  54 // 0x1B3 DMA UART3 TX Transfer
#define DMA_UR3R_VECTOR  55 // 0x1BB DMA UART3 RX Transfer
#define DMA_UR4T_VECTOR  56 // 0x1C3 DMA UART4 TX Transfer
#define DMA_UR4R_VECTOR  57 // 0x1CB DMA UART4 RX Transfer
#define DMA_TFT_VECTOR   58 // 0x1D3 DMA TFT Transfer
#define DMA_I2CT_VECTOR  60 // 0x1E3 DMA I2C Transfer
#define DMA_I2CR_VECTOR  61 // 0x1EB DMA I2C Receive
#define DMA_I2ST_VECTOR  63 // 0x1F3 DMA I2S Transfer
#define DMA_I2SR_VECTOR  64 // 0x1FB DMA I2S Receive
#define DMA_QSPI_VECTOR  65 // 0x203 DMA QSPI Transfer
#define DMA_PWMAT_VECTOR 72 // 0x243 DMA PWM A Transfer
#define DMA_PWMAR_VECTOR 73 // 0x24B DMA PWM A Receive

#define TFT_VECTOR       59 // 0x1DB TFT Controller
#define I2S_VECTOR       62 // 0x1F3 I2S Controller
#define QSPI_VECTOR      66 // 0x20B QSPI Controller
#define TMR11_VECTOR     67 // 0x21B Timer 11 Overflow

#endif // __VECTOR__
